package com.ikas.ai.framework.flow;

/**
 * @Description: 流程状态
 *
 * @Author: qi.yilai
 * @Date: 2022/8/11 17:32
 * @Version: 1.0.0
 **/
public enum FlowStatus {

    CREATED(0, "created"),

    STARTING(1, "starting"),

    SUCCESS(2, "success"),

    FAILURE(3, "failure"),

    STOP(4, "stop");

    private Integer status;

    private String code;

    FlowStatus(Integer status, String code) {
        this.status = status;
        this.code = code;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
